import 'package:flutter/material.dart';

class InfoModifyPage extends StatefulWidget {
  const InfoModifyPage({Key? key}) : super(key: key);

  @override
  State<InfoModifyPage> createState() => _InfoModifyPageState();
}

class _InfoModifyPageState extends State<InfoModifyPage> {
  final List<String> _userInfo = [];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("个人信息"),
      ),
      body: ListView.separated(
          itemBuilder: _itemBuilder,
          separatorBuilder: (BuildContext context, int position) =>
              const Divider(),
          itemCount: _userInfo.length),
    );
  }

  Widget _itemBuilder(BuildContext context, int position) {
    // TODO: 信息修改页表项
    return const Text("个人信息");
  }
}
